package com.alignet.gn.hibernate;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

/**
 * AbstractTgnAction entity provides the base persistence definition of the
 * TgnAction entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractTgnSubproducto implements java.io.Serializable {

	private static final long serialVersionUID = -3068171221259285091L;


    private Integer inIdSubProducto;
    private String vcName;
    private String vcDescription;
    private String vcState;
    
    private String vcCompuesto;
    private Timestamp dtRegistry;

    // Constructors

    /** default constructor */
    public AbstractTgnSubproducto() {
    }

    @Id
    @Column(name = "IN_IDSUBPRODUCTO", unique = true, nullable = false)
	public Integer getInIdSubProducto() {
		return inIdSubProducto;
	}

	public void setInIdSubProducto(Integer inIdSubProducto) {
		this.inIdSubProducto = inIdSubProducto;
	}

	
	@Column(name = "VC_NOMBRE", nullable = false, length = 2)
	public String getVcName() {
		return vcName;
	}

	public void setVcName(String vcName) {
		this.vcName = vcName;
	}

	@Column(name = "VC_CODIGO", nullable = false, length = 2)
	public String getVcDescription() {
		return vcDescription;
	}

	public void setVcDescription(String vcDescription) {
		this.vcDescription = vcDescription;
	}

	@Column(name = "VC_ESTADO", nullable = false, length = 2)
	public String getVcState() {
		return vcState;
	}

	public void setVcState(String vcState) {
		this.vcState = vcState;
	}

	@Column(name = "DT_REGISTRO", nullable = false, length = 2)
	public Timestamp getDtRegistry() {
		return dtRegistry;
	}

	public void setDtRegistry(Timestamp dtRegistry) {
		this.dtRegistry = dtRegistry;
	}

	@Transient
	public String getVcCompuesto() {
		return getVcDescription()+"."+getVcName();
	}

	public void setVcCompuesto(String vcCompuesto) {
		this.vcCompuesto = vcCompuesto;
	}
	
	
}